import request from '@/utils/request'


// 分页查询公寓申请审批
export function getExamineAll(query) {
  return request({
    url: '/park/examine/getExamineAll',
    method: 'get',
    params: query
  })
}

// 根据id查询审批记录
export function getExamineById(id) {
  return request({
    url: '/park/examine/getExamineById/' + id,
    method: 'get',
  })
}

//删除审批
export function deleteExamine(id) {
  return request({
    url: '/park/examine/deleteExamine/' + id,
    method: 'delete',
  })
}

// 审核
export function updateStatus(form) {
  return request({
    url: '/park/examine/updateStatus',
    method: 'put',
    data: form
  })
}

// 新增审核
export function addExamine(form) {
  return request({
    url: '/park/examine/addExamine',
    method: 'post',
    data: form
  })
}
